#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../supervision-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy supervision-gateway "
cp ../supervision-gateway/target/supervision-gateway.jar ./supervision/gateway/jar

echo "begin copy supervision-auth "
cp ../supervision-auth/target/supervision-auth.jar ./supervision/auth/jar

echo "begin copy supervision-visual "
cp ../supervision-visual/supervision-monitor/target/supervision-visual-monitor.jar  ./supervision/visual/monitor/jar

echo "begin copy supervision-modules-system "
cp ../supervision-modules/supervision-system/target/supervision-modules-system.jar ./supervision/modules/system/jar

echo "begin copy supervision-modules-file "
cp ../supervision-modules/supervision-file/target/supervision-modules-file.jar ./supervision/modules/file/jar

echo "begin copy supervision-modules-job "
cp ../supervision-modules/supervision-job/target/supervision-modules-job.jar ./supervision/modules/job/jar

echo "begin copy supervision-modules-gen "
cp ../supervision-modules/supervision-gen/target/supervision-modules-gen.jar ./supervision/modules/gen/jar

